package com.study.gank.api

import com.study.gank.bean.BaseResult
import com.study.gank.bean.GankGoods
import io.reactivex.Observable
import retrofit2.http.GET
import retrofit2.http.Path

interface GankApi {

    /**
     * 手气不错
     */
    @GET("v2/random/category/GanHuo/type/{type}/count/1")
    fun getRandom(@Path("type") type: String): Observable<BaseResult<List<GankGoods>>>

    /**
     * Android所有数据
     */
    @GET("v2/data/category/GanHuo/type/Android/page/{page}/count/10")
    fun getAndroidData(@Path("page") page: Int): Observable<BaseResult<List<GankGoods>>>

    /**
     * iOS所有数据
     */
    @GET("v2/data/category/GanHuo/type/iOS/page/{page}/count/10")
    fun getiOSData(@Path("page") page: Int): Observable<BaseResult<List<GankGoods>>>

    /**
     * 福利所有数据
     */
    @GET("v2/data/category/Girl/type/Girl/page/{page}/count/10")
    fun getGirlData(@Path("page") page: Int): Observable<BaseResult<List<GankGoods>>>

}